{include file="public/header" /}

<style>
    body{
        background: #FFF;
    }

</style>

<div class="page">
    <a href="javascript:history.go(-1)" class="btn" title="返回上一步">返回上一步</a>
    <table class="ds-default-table order">
        <tbody>
        <!--  <tr class="space">
            <th colspan="2">{$Think.lang.order_detail}</th>
        </tr> -->
        <tr>
            <th>{$Think.lang.order_info}</th>
        </tr>
        <tr>
            <td colspan="2">
                <ul>
                    <li><strong>{$Think.lang.ds_order_sn}:</strong>{$order_info.order_sn}</li>
                    <li><strong>{$Think.lang.order_state}:</strong>{$order_state[$order_info.order_state]}</li>

                    <?php
                         if($order_info['order_state'] == 6){
                    ?>
                            <li><strong>审核失败原因:</strong>{$order_info.examine_failed_reason}</li>
                    <?php
                        }
                    ?>
                    <li><strong>订单类型:</strong>{$order_type[$order_info.order_type]}</li>
                    <li><strong>订单预约时间:</strong>{$order_info.appointment_time}</li>
                    <li><strong>订单创建时间:</strong>{$order_info.add_time|date="Y-m-d H:i:s",###}</li>
                    <!-- <li><strong>订单备注:</strong>{$order_info.remarks}</li>
                    <li><strong>上门费用:</strong>{$order_info.door_fee}</li>
                    <li><strong>管理员备注:</strong>{$order_info.manager_remark}</li>
                    <li><strong>服务内容:</strong>{$order_info.service_content}</li> -->
                </ul>
            </td>
        </tr>

        <tr>
            <th>买家信息</th>
        </tr>
        <tr>
            <td colspan="2">
                <ul>
                    <li><strong>买家账号:</strong>{$order_info.member_name}</li>
                    <li><strong>运营商:</strong>{$order_info.invite_store_name}</li>
                </ul>
            </td>
        </tr>

        {notempty name="order_info.address"}
        <tr>
            <th>客户信息</th>
        </tr>
        <tr>
            <td>
                <ul>
                    <li><strong>客户姓名{$Think.lang.ds_colon}</strong>{$order_info.address.address_realname}</li>
                    <li><strong>客户电话:</strong>{$order_info.address.address_tel_phone}</li>
                    <li><strong>客户地址{$Think.lang.ds_colon}</strong>{$order_info.address.area_info}&nbsp;{$order_info.address.address_detail}&nbsp;</li>
                </ul>
            </td>
        </tr>
        {/notempty}
        <!--<?php if (!empty($order_info['extend_order_common']['invoice_info'])) {?>-->
        <!--<tr>-->
        <!--<th>{$Think.lang.invoice_info}</th>-->
        <!--</tr>-->
        <!--<tr>-->
        <!--<td><ul>-->
        <!--<?php foreach ((array)$order_info['extend_order_common']['invoice_info'] as $key => $value){?>-->
        <!--<li><strong>{$key}{$Think.lang.ds_colon}</strong>{$value}</li>-->
        <!--<?php } ?>-->
        <!--</ul></td>-->
        <!--</tr>-->
        <!--<?php } ?>-->
        {notempty name="order_info.zhu_order_info"}
        <tr>
            <th>服务设备列表
            </th>
        </tr>

        <tr>
            <td><table class="ds-default-table goods ">
                <tbody>
                <tr>
                    <th class="align-center">设备编号</th>
                    <th class="align-center">设备名称</th>
                    <th class="align-center">品牌</th>
                    <th class="align-center">操作</th>
                </tr>
                {foreach name="$order_info.zhu_order_info" item="goods"}
                <tr>
                    <td class="w20 align-center"><p>{$goods.goods_id}</p></td>
                    <td class="w20 align-center"><p>{$goods.goods_name}</p></td>
                    <td class="w20 align-center"><span class="red_common">{$goods.b_name}</span></td>
                    <td class="w96 align-center">
                        <a href="javascript:dsLayerOpen('{:url('Service/show_detail',['id'=>$goods.id])}','{$Think.lang.ds_view} 子订单详情')" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_view}</a>
                    </td>

                </tr>
                {/foreach}
                </tbody>
            </table>
            </td>
        </tr>
        {/notempty}
        
        <tr>
            <th>追加服务设备列表</th>
        </tr>
        <tr>
            <td><table class="ds-default-table goods ">
                <tbody>
                <tr>
                    <th class="align-center">设备编号</th>
                    <th class="align-center">设备名称</th>
                    <th class="align-center">品牌</th>
                    <!--<th class="align-center">规格</th>-->
                    <!--<th class="align-center">部位</th>-->
                    <!--<?php if($order_info['order_type'] != 1){ ?>-->
                    <!--<th class="align-center">自动诊断</th>-->
                    <!--<th class="align-center">需添加附件</th>-->
                    <!--<?php } ?>-->
                    <!--<th class="align-center">环境图</th>-->
                    <!--<th class="align-center">技工姓名</th>-->
                    <!--<th class="align-center">预计工时</th>-->
                    <!--<th class="align-center">单位时间费用</th>-->
                    <th class="align-center">操作</th>
                </tr>
                {foreach name="$order_info.goods_items" item="goods"}
                <tr>
                    <td class="w20 align-center"><p>{$goods.goods_id}</p></td>
                    <td class="w20 align-center"><p>{$goods.goods_name}</p></td>
                    <td class="w20 align-center"><span class="red_common">{$goods.b_name}</span></td>
                    <!--<td class="w40 align-center"><span class="red_common">{$goods.type_model}</span></td>-->
                    <!--<td class="w100 align-center">
                        <span class="red_common">
                        {foreach name="$goods.option_info" item="option"}
                            <?php
                                    if($option['selected'] == 1){
                                        echo $option['content']."√      &nbsp;";
                                    }else{
                                        echo $option['content']."×      &nbsp;";
                                    }
                                ?>

                            {/foreach}
                        </span>
                    </td>
                    <?php if($order_info['order_type'] != 1){ ?>
                    <td class="w96 align-center">{$goods.diagnostic_results}</td>
                    <td class="w96 align-center">
                        {foreach name="$goods.parts" key="key" item="part"}
                            {$key+1}.{$part.goods_name}×{$part.num}件/个<br>
                        {/foreach}
                    </td>
                    <?php } ?>
                    <td class="w196 align-center">
                        <?php if($goods['science_pics']){ ?>
                        {foreach name="$goods.science_pics" item="pic_src"}
                        <img src=<?php echo $pic_src ;?> alt="" style="width:230px;height:130px"></li>
                        {/foreach}
                        <?php }else{ echo "无上传图";} ?>
                    </td>-->
                    <!--<td class="w96 align-center">{$goods.mechanic_name}</td>-->
                    <!--<td class="w96 align-center">{$goods.need_hours}</td>-->
                    <!--<td class="w96 align-center">{$goods.payper_hour}¥</td>-->
                    <td class="w96 align-center">
                        <a href="javascript:dsLayerOpen('{:url('Service/append_show_detail',['id'=>$goods.id])}','{$Think.lang.ds_view} 子订单详情')" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_view}</a>
                    </td>

                </tr>
                {/foreach}
                </tbody>
            </table>
            </td>
        </tr>
</div>